<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
    
<%@taglib  prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1">
	<title></title>
	<link rel="stylesheet" href="../jquery/jquery.mobile-1.0a4.1.min.css" />
	<link rel="stylesheet" href="../css/member_style.css"/>
	<script type="text/javascript" src="../jquery/jquery-1.5.2.min.js"></script>
    <script type="text/javascript" src="../jquery/jquery.mobile-1.0a4.1.min.js"></script>
    <script type="text/javascript" src="member_delete.js"></script>

</head> 
<body>
<div data-role="page" id="album-list">

	<div id="header"  data-role="header" data-theme="b">
		会员删除页面
		<a id="back"  data-role="button" data-icon="back" data-iconpos="notext" style="float: right;"  >回退</a> 
	</div><!-- /header -->
	
	
	<div data-role="content">
		
		<form id="member_delete_form" action="delete.action" method="post" enctype="multipart/form-data">
	
			<div data-role="fieldcontain">
	        	 <input type="hidden" name="id" id="id" value="<s:property value="member.id"/>"  />
			</div>
			
			<div data-role="fieldcontain">
				<label for="memberId">账号:</label>
	        	 <input type="text" name="memberId" id="memberId" value="<s:property value="member.memberId"/>"   readonly="readonly" />
			</div>
			<div data-role="fieldcontain">
				<label for="nickName">昵称:</label>
	        	<input type="text" name="nickName" id="nickName" value="<s:property value="member.nickName"/>" readonly="readonly"  />
			</div>
			
			<div data-role="fieldcontain">
			
			     <label for="memberCategoryNo">级别:</label>
		       <%--   <select name="memberCategoryNo" id="memberCategoryNo" disabled="disabled">
		         	<s:iterator value="memberCategoryList">
		         		 <s:if test='id==member.category.id'>
		         			<option value='<s:property value="id"/>' selected><s:property value="name"/></option>
		                 </s:if>
		                 <s:else>
		                 	<option value='<s:property value="id"/>'><s:property value="name"/></option>
		                 </s:else>
		         	 </s:iterator>
		         </select> --%>
		         <input type="text" id="memberCategoryNo" value="<s:property value="member.category.name"/>" readonly="readonly"  />
		       	  <input type="hidden" name="memberCategoryNo"  value="<s:property value="member.category.id"/>"  />
		       
		       
			</div>
			
			<div data-role="fieldcontain">
				<label for="name">姓名:</label>
	        	 <input type="text" name="name" id="name" value="<s:property value="member.name"/>" readonly="readonly"   />
			</div>

			<div data-role="fieldcontain">
	         <label for="password">密码:</label>
	         <input type="password" name="password" id="password"  value="<s:property value="member.password"/>" readonly="readonly"  />
			</div>

			<div data-role="fieldcontain">
				<fieldset data-role="controlgroup" data-type="horizontal">
			     		<legend>性别:</legend>
			     		<s:if test='member.sex==M'>
				     		<input type="radio" name="sex" id="sex_m" value="M" checked="checked"  disabled="disabled" />
				         	<label for="sex_m">男</label>
				         	<input type="radio" name="sex" id="sex_f" value="F"  disabled="disabled" />
				         	<label for="sex_f">女</label>
			     		</s:if>
			     		<s:else>
			     			<input type="radio" name="sex" id="sex_m" value="M"  disabled="disabled" />
				         	<label for="sex_m">男</label>
				         	<input type="radio" name="sex" id="sex_f" value="F" checked="checked"  disabled="disabled" />
				         	<label for="sex_f">女</label>
			     		</s:else>
			    </fieldset>
			</div>

			<div data-role="fieldcontain">
				<label for="birthday">出生日期:</label>
			 	<input type="text" name="birthday" id="birthday" value="<s:property value="member.birthday"/>" readonly="readonly"  />
			</div>
			<div data-role="fieldcontain">
				<label for="address">家庭住址:</label>
			 	<input type="text" name="address" id="address" value="<s:property value="member.address"/>" readonly="readonly"  />
			</div>
			
			<div data-role="fieldcontain">
				<label for="email">Email:</label>
				<input type="text" name="email" id="email" value="<s:property value="member.email"/>"  readonly="readonly"  />
			</div>
			<div data-role="fieldcontain">
				<label for="tel">电话:</label>
			 	<input type="text" name="tel" id="tel" value="<s:property value="member.tel"/>"  readonly="readonly"  />
			</div>
			<div data-role="fieldcontain">
				<label for="mobilePhone">手机号码:</label>
			 	<input type="text" name="mobilePhone" id="mobilePhone" value="<s:property value="member.mobilePhone"/>" readonly="readonly"   />
			</div>
			<div data-role="fieldcontain">
				<label for="qq">QQ:</label>
			 	<input type="text" name="qq" id="qq" value="<s:property value="member.qq"/>"  readonly="readonly"  />
			</div>

			<div data-role="fieldcontain">
			　	<fieldset data-role="controlgroup">
				　　 <legend>爱好:</legend>
				　	<s:iterator var="h" value="hobbyList">

							<s:iterator var="hobby" value="member.hobbys">
								<s:if test="#h.id == #hobby.id">
									<input type="checkbox" name="hobbyIds"
										id="<s:property value="id"/>" value='<s:property value="id"/>'
										checked class="custom"  disabled="disabled"/>
									<label for="<s:property value="id"/>"><s:property
											value="name" />
									</label>
								</s:if>
							</s:iterator>

						</s:iterator>
			　　 </fieldset>
			</div>
		
			<div data-role="fieldcontain">
			 <fieldset data-role="controlgroup" data-type="horizontal">
			     	<legend>图片:</legend>
				<label for="photo"></label>
				<img src="../upload/<s:property value="member.photoName" />" width="80" height="80" id="show_photo" />
				<input type="hidden" id="photoName" name="photoName" value="<s:property value="member.photoName" />"/>
			  </fieldset>
			    
			</div>
			
			
			<fieldset class="ui-grid-a">
				<div class="ui-block-a"><button type="button" onclick="location='list.action'" data-theme="d">关闭</button></div>
				<div class="ui-block-b"><button type="submit" id="submit"  data-theme="a">删除</button></div>
	   		 </fieldset>
			
		 </form>
	</div><!-- /content -->
</div><!-- /page -->

</body>
</html>